package com.example.myone.Entity;

import java.util.ArrayList;
import java.util.List;

public enum ArticleCategoryEnum {
    ALL("全部"),
    DAILY("日签"), READING("阅读"),
    QUESTION("问答"), LONG_ARTICLE("长篇"),
    RADIO("收音机"),
    ;
    private final String message;

    ArticleCategoryEnum(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public static List<String> getAllCategory() {
        List<String> categoryList = new ArrayList<>();
        for (ArticleCategoryEnum category : ArticleCategoryEnum.values()) {
            if (category != ALL) {
                categoryList.add(category.getMessage());
            }
        }
        return categoryList;
    }

}
